package com.mdms.interfaces.orm;



public abstract class DAOFactory {

	public static DAOFactory instance(Class factory) {
		try {
			return (DAOFactory) factory.newInstance();
		} catch (Exception ex) {
			throw new RuntimeException("Couldn't create DAOFactory: " + factory);
		}
	}

	// Pobieranie DAO
	public abstract CrudDAO getCrudDAO();
	
	//Pobieranie Meta DAO
	public abstract MetaDAO getMetaDAO();

	
}

